package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.domain.Model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @TableName attaches
 */
@TableName(value = "attaches")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "附件对象")
public class Attaches extends BaseEntity implements Serializable {
    @ApiModelProperty("附件Id")
    private Integer id;
    @ApiModelProperty("附件地址")
    private String url;
    @ApiModelProperty("附件名称")
    private String name;
    @ApiModelProperty("附件大小")
    private Long size;
    @ApiModelProperty("附件后缀")
    private String extension;
    @ApiModelProperty("附件类型(0团队1项目2需求3任务)")
    private Integer type;
    @ApiModelProperty("对应type的id(团队/项目/需求/任务)")
    private Integer typeId;
    private static final long serialVersionUID = 1L;
}